<script setup>
import { ref } from 'vue'
import DialogComponent from '@/components/DialogComponent.vue'

const dialog = ref(null)

const openDialog = () => {
  dialog.value.openDialog()
}
</script>

<template>
  <div class="app-container">
    <el-button type="primary" @click="openDialog">打开DeepSeek对话框</el-button>
    <DialogComponent ref="dialog" />
  </div>
</template>

<style>
.app-container {
  padding: 20px;
}
</style>